package com.hqd.ch03.v42.web.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 闪存管理器
 */
public interface FlashMapManager {
    /**
     * 清除闪存
     *
     * @param request
     * @param response
     * @return
     */
    FlashMap retrieveAndUpdate(HttpServletRequest request, HttpServletResponse response);

    /**
     * 保存闪存
     *
     * @param flashMap
     * @param request
     * @param response
     */
    void saveOutputFlashMap(FlashMap flashMap, HttpServletRequest request, HttpServletResponse response);
}
